import { Drawer } from "antd";

interface Props {
  open: boolean;
  setOpen: (e: boolean) => void;
  onClose?: () => void;
}

export default function Index({ open, onClose, setOpen }: Props) {
  const handleClose = () => {
    if (onClose) {
      onClose();
    } else {
      setOpen(false);
    }
  };
  return (
    <Drawer title="偏好设置" onClose={handleClose} open={open} closeIcon={false}>
      
    </Drawer>
  );
}
